<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="scripts/jquery/jquery-1.7.1.js"></script>
<link href="style/authority/basic_layout.css" rel="stylesheet" type="text/css">
<link href="style/authority/common_style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="scripts/HZ/hz.css"></script>
<script type="text/javascript" src="scripts/fancybox/jquery.fancybox-1.3.4.js"></script>
<link rel="stylesheet" type="text/css" href="style/authority/jquery.fancybox-1.3.4.css" media="screen"></link>

<title>区域管理</title>
<script type="text/javascript">
	$(document).ready(function(){
		/** 新增   **/
	    $("#addBtn").fancybox({
	    	'href'  : 'house_edit.html',
	    	'width' : 733,
	        'height' : 530,
	        'type' : 'iframe',
	        'hideOnOverlayClick' : false,
	        'showCloseButton' : false,
	        'onClosed' : function() { 
	        	window.location.href = 'house_list.html';
	        }
	    });
		
	    /** 导入  **/
	    $("#importBtn").fancybox({
	    	'href'  : '/xngzf/archives/importFangyuan.action',
	    	'width' : 633,
	        'height' : 260,
	        'type' : 'iframe',
	        'hideOnOverlayClick' : false,
	        'showCloseButton' : false,
	        'onClosed' : function() { 
	        	window.location.href = 'house_list.html';
	        }
	    });
		
	    /** 编辑   **/
	    $("a.edit").fancybox({
			
	    	'width' : 733,
	        'height' : 530,
	        'type' : 'iframe',
	        'hideOnOverlayClick' : false,
	        'showCloseButton' : false,
	        'onClosed' : function() { 
	        	window.location.href = 'house_list.html';
	        }
	    });
	});
	/** 用户角色   **/
	var userRole = '';

	/** 模糊查询来电用户  **/
	function search(){
		$("#submitForm").attr("action", "house_list.html?page=" + 1).submit();
	}

	/** 新增   **/
	function add(){
		$("#submitForm").attr("action", "/xngzf/archives/luruFangyuan.action").submit();	
	}
	 
	/** Excel导出  **/
	function exportExcel(){
		if( confirm('您确定要导出吗？') ){
			var fyXqCode = $("#fyXq").val();
			var fyXqName = $('#fyXq option:selected').text();
//	 		alert(fyXqCode);
			if(fyXqCode=="" || fyXqCode==null){
				$("#fyXqName").val("");
			}else{
//	 			alert(fyXqCode);
				$("#fyXqName").val(fyXqName);
			}
			$("#submitForm").attr("action", "/xngzf/archives/exportExcelFangyuan.action").submit();	
		}
	}
	
	/** 删除 **/
	function del(fyID){
		// 非空判断
		if(fyID == '') return;
		if(confirm("您确定要删除吗？")){
			$("#submitForm").attr("action", "/xngzf/archives/delFangyuan.action?fyID=" + fyID).submit();			
		}
	}
	
	/** 批量删除 **/
	function batchDel(){
		if($("input[name='IDCheck']:checked").size()<=0){
			art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'至少选择一条', ok:true,});
			return;
		}
		// 1）取出用户选中的checkbox放入字符串传给后台,form提交
		var allIDCheck = "";
		$("input[name='IDCheck']:checked").each(function(index, domEle){
			bjText = $(domEle).parent("td").parent("tr").last().children("td").last().prev().text();
// 			alert(bjText);
			// 用户选择的checkbox, 过滤掉“已审核”的，记住哦
			if($.trim(bjText)=="已审核"){
// 				$(domEle).removeAttr("checked");
				$(domEle).parent("td").parent("tr").css({color:"red"});
				$("#resultInfo").html("已审核的是不允许您删除的，请联系管理员删除！！！");
// 				return;
			}else{
				allIDCheck += $(domEle).val() + ",";
			}
		});
		// 截掉最后一个","
		if(allIDCheck.length>0) {
			allIDCheck = allIDCheck.substring(0, allIDCheck.length-1);
			// 赋给隐藏域
			$("#allIDCheck").val(allIDCheck);
			if(confirm("您确定要批量删除这些记录吗？")){
				// 提交form
				$("#submitForm").attr("action", "/xngzf/archives/batchDelFangyuan.action").submit();
			}
		}
	}

	/** 普通跳转 **/
	function jumpNormalPage(page){
		$("#submitForm").attr("action", "house_list.html?page=" + page).submit();
	}
	
	/** 输入页跳转 **/
	function jumpInputPage(totalPage){
		// 如果“跳转页数”不为空
		if($("#jumpNumTxt").val() != ''){
			var pageNum = parseInt($("#jumpNumTxt").val());
			// 如果跳转页数在不合理范围内，则置为1
			if(pageNum<1 | pageNum>totalPage){
				art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'请输入合适的页数，\n自动为您跳到首页', ok:true,});
				pageNum = 1;
			}
			$("#submitForm").attr("action", "house_list.html?page=" + pageNum).submit();
		}else{
			// “跳转页数”为空
			art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'请输入合适的页数，\n自动为您跳到首页', ok:true,});
			$("#submitForm").attr("action", "house_list.html?page=" + 1).submit();
		}
	}
	
</script>
<style>
	.alt td{ background:black !important;}
</style>
</head>
<body>
<form id="submitForm" name="submitForm" action="" method="post">
    <input type="hidden" name="allIDCheck" value="" id="allIDCheck"/>
    <input type="hidden" name="fangyuanEntity.fyXqName" value="" id="fyXqName"/>
    <div id="container">
        <div id="main">
            <div class="ui_content">
                <div class="ui_text_indent">
                    <div id="box_top">参数管理</div>
                    
                    <!--  -->
           			<div>
                        <!-- 左边 -->
                        <div class="ulzuo">
                            <!-- 左1 -->
                            <div class="ulzuo1">
                                <ul><li>通信方式</li></ul>
                                <ul>
                                    <li>串口：</li>
                                    <li>
                                        <select class="ui_select01">
                                            <option>--请选择--</option>
                                            <option>无（即一级区域）</option>
                                        </select>
                                    </li>
                                </ul>
                                <ul>
                                    <li>波特率：</li>
                                    <li>
                                        <select class="ui_select01">
                                            <option>--请选择--</option>
                                            <option>无（即一级区域）</option>
                                        </select>
                                    </li>
                                </ul>
                                <ul>
                                    <li>
                                        <input type="button" value="新增" class="ui_input_btn01" id="" />
                                    </li>
                                    <li>
                                        <input type="button" value="查询" class="ui_input_btn01" onclick="" /> 
                                    </li>
                                </ul>
                            </div>
                            <!-- 左1 END -->
                            <!-- 左2 -->
                            <div class="ulzuo1">
                                <ul>
                                    <li>从日前：</li>
                                    <li>
                                        <input type="date"/>
                                    </li>
                                    <li>
                                        <input type="time"/>
                                    </li>
                                </ul>
                                <ul>
                                    <li>到日期：</li>
                                    <li>
                                        <input type="date"/>
                                    </li>
                                    <li>
                                        <input type="time"/>
                                    </li>
                                </ul>
                                <ul>
                                    <li>
                                        <input type="button" value="获取历史数据" class="ui_input_btn01" id="" />
                                    </li>
                                    <li>
                                        <input type="button" value="停止" class="ui_input_btn01" onclick="" /> 
                                    </li>
                                </ul>
                            </div>
                            <!-- 左2 END -->
                            <!-- 左3 -->
                            <div class="ulzuo3">
                                <ul>
                                    <li>新站点号：</li>
                                    <li><input type="text" class="ui_input_txt02" /></li>
                                </ul>
                                <ul>
                                     <li><input type="button" value="修改" class="ui_input_btn01" /></li>
                                </ul>
                            </div>
                            <!-- 左3 END -->
                        </div>
                        
                        <style>
                            .ulzuo{
                                float:left;
								margin-left:30px;
                            }
                            .ulzuo li{
                                display:inline;
                            }
                            
                            .ulzuo1{
                                height:200px;
                                width:200px;
                                margin-bottom:10px;
                                border:1px solid rgba(0,0,0,1.00);
                            }
                            .ulzuo2{
                                height:180px;
                                width:200px;
                                margin-bottom:10px;
                                border:1px solid rgba(0,0,0,1.00);
                            }
                            .ulzuo3{
                                height:140px;
                                width:200px;
                                margin-bottom:10px;
                                border:1px solid rgba(0,0,0,1.00);
                            }
                            
                        </style>
                        <!-- 左边 END -->
                        
                        <!-- 右边 -->
                        <div class="ulyou">
                            <ul>
                                <li>系统时间：</li>
                                <li>
                                    <input type="date"/>
                                </li>
                                <li>
                                    <input type="time"/>
                                </li>
                                <li><input type="button" value="系统校时" class="ui_input_btn01"/></li>
                            </ul>
                            <ul>
                                <li>主机ID：</li>
                                <li><input type="text" class="ui_input_txt02" /></li>
                                <li>日雨量清零：</li>
                                <li><input type="text" class="ui_input_txt02" /></li>
                            </ul>
                            <ul>
                                <li>主机COM：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                            </ul>
                            <ul>
                                <li>采集间隔：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                                <li>SD：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                            </ul>
                            <ul>
                                <li>发送间隔：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                    分钟
                                </li>
                                <li>LCD：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                            </ul>
                            <ul>
                                <li>发送类型：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                    0:否  1:是
                                </li>
                                <li>波特率1：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                            </ul>
                            <ul>
                                <li>超时时间：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                                <li>波特率2：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                            </ul>
                            <ul>
                                <li>重发次数：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                                <li>波特率3：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                            </ul>
                            <ul>
                                <li>通信协议：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                                <li>破特率4：</li>
                                <li>
                                    <select class="ui_select01">
                                        <option>--请选择--</option>
                                        <option>无</option>
                                    </select>
                                </li>
                            </ul>
                            <ul>
                                <li><input type="button" value="设置参数" class="ui_input_btn01"/></li>
                                <li><input type="button" value="获取参数 " class="ui_input_btn01"/></li>
                            </ul>
    
    
                        </div>
                        
                        <style>
                        .ulyou{
                            float:left;
                            height:350px;
                            width:700px;
                            margin-left:10px;
							margin-bottom:10px;
                            border:1px solid rgba(0,0,0,1.00);
                        }
                        .ulyou li{
                            display:inline;
                        }
                        </style>
                        <!-- 右边 END -->
                        
                        <!-- 下边 -->
                        <div class="ulxia">
                        	<ul>
                                <li><input type="text" class="ui_input_txt02" /></li>
                                <li><input type="button" value="配置DTUID" class="ui_input_btn01"/></li>
                                <li><input type="button" value="获取DTUID" class="ui_input_btn01"/></li>
                                <li><input type="button" value="获取实时数据" class="ui_input_btn01"/></li>
                            </ul>
                        	<ul>
                                <li><input type="text" class="ui_input_txt02" /></li>
                                <li><input type="button" value="配置DTUIP" class="ui_input_btn01"/></li>
                                <li><input type="button" value="获取DTUIP" class="ui_input_btn01"/></li>
                                <li><input type="button" value="设备复位" class="ui_input_btn01"/></li>
                            </ul>
                        	<ul>
                                <li><input type="text" class="ui_input_txt02" /></li>
                                <li><input type="button" value="配置DTU域名" class="ui_input_btn01"/></li>
                                <li><input type="button" value="获取DTU域名" class="ui_input_btn01"/></li>
                                <li><input type="button" value="恢复出厂设置" class="ui_input_btn01"/></li>
                            </ul>
                        	<ul>
                                <li><input type="text" class="ui_input_txt02" /></li>
                                <li><input type="button" value="修改端口号" class="ui_input_btn01"/></li>
                            </ul>
                        	<ul>
                                <li><input type="text" class="ui_input_txt02" /></li>
                                <li><input type="button" value="自定义命令" class="ui_input_btn01"/></li>
                            </ul>
                        </div>
                        <style>
						.ulxia{
							float:left;
                            height:200px;
                            width:700px;
							margin-left:10px;
                            border:1px solid rgba(0,0,0,1.00);
						}
						.ulxia li{
                            display:inline;
						}
						</style>
                        <!-- 下边 END -->
                    </div>
                    <!-- END -->
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
